#! /usr/bin/python
# -*- coding: cp1250 -*-
# mvdt.py

import time, shutil, sys, os
import pepe.p_oslevel.basic as wai

#itn = lambda : time.strftime ("%Y-%m-%dT%H%M%S", time.localtime()) # iso time now
itn = lambda : time.strftime ("%Y%m%d-%H%M", time.localtime()) # iso time now

if __name__ == '__main__':
    ''' '''
    if len(sys.argv) == 2 and os.path.exists(sys.argv[1]):
        shutil.move(sys.argv[1], itn()+''+sys.argv[1])
    else:
        print '    Syntax: mvdt <file/folder> \n    or file/folder was not found.'

    #print sys.argv[1]